package com.tencent.sr.iris.basic.mp.restapi.controller.message;

import com.tencent.sr.iris.basic.mp.interfaces.response.message.MessageConfigResponse;
import com.tencent.sr.iris.basic.mp.service.message.UserMessageConfigService;
import com.tencent.sr.rmall.common.primitive.HttpResult;
import io.swagger.annotations.Api;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 消息配置接口
 *
 * @author xiaodongguo
 * @Date: 2021/1/16
 */
@Api(tags = "消息配置接口", value = "消息配置接口")
@RestController
@RequestMapping(value = {"/iris/basic/mp/v1/messageconfig/"})
public class UserMessageConfigController {

    @Resource
    private UserMessageConfigService userMessageConfigService;

    /**
     * 查询消息配置
     *
     * @return
     */
    @PostMapping("/queryAllMessageConfigList")
    public HttpResult<MessageConfigResponse> queryAllMessageConfigList() {
        return HttpResult.succ(userMessageConfigService.queryAllMessageConfigList());
    }

}
